package com.wireless.entity;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.Fetch;
import org.hibernate.annotations.FetchMode;

/**
 * Menutbl entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "menutbl")
public class Menutbl implements java.io.Serializable {

	// Fields
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id")
	private Integer id;
	@ManyToOne(cascade = CascadeType.MERGE)
	@JoinColumn(name = "typeID", unique = true)
	private Menutypetbl menutypetbl;
	private String name;
	private String price;
	private String pic;
	private String remark;

	// Constructors

	/** default constructor */
	public Menutbl() {
	}

	public Menutbl(Integer id, Menutypetbl menutypetbl, String name,
			String price, String pic, String remark) {
		super();
		this.id = id;
		this.menutypetbl = menutypetbl;
		this.name = name;
		this.price = price;
		this.pic = pic;
		this.remark = remark;
	}

	/** minimal constructor */
	public Menutbl(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Menutypetbl getMenutypetbl() {
		return menutypetbl;
	}

	public void setMenutypetbl(Menutypetbl menutypetbl) {
		this.menutypetbl = menutypetbl;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}